package com.superbytecode.cloud.nacos.controller;

import com.superbytecode.cloud.nacos.service.TestNacosConfigService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.nacos.controller
 * @ClassName: NacosController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/11/4 16:30
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@RestController
@RequestMapping("nacos")
public class NacosController {

    TestNacosConfigService testNacosConfigService;

    @PostMapping("/config")
    public String testNacosConfig(@RequestBody Map<String,Object> params) {
        return testNacosConfigService.obtainConfigInfo(params);
    }
}